package com.example.testjson.bean;

/**
 * Created by Administrator on 2021/3/4.
 */
/*
{
"name":"Tom",
"number":"1001",
"age":"18"
}
 */

public class StudentInfo {
    //将json对象的每一个关键字作为实体类的属性名，属性的类型就是json对象的值的类型
   private String name;
    private String number;
    private String  age;

    public StudentInfo() {
    }

    public StudentInfo(String name, String number, String age) {
        this.name = name;
        this.number = number;
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }
}
